//导入axios
import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios)
//创建instance实力
const instance = axios.create({
  baseURL: 'http://toutiao.itheima.net',
  timeout: 10000,
//   headers: { 'X-Custom-Header': 'foobar' }
})

//导出
export default instance